LOCAL_PATH := $(call my-dir)
LIB_DEFAULT_PATH := $(LOCAL_PATH)/../obj/local/armeabi
LIB_DESTINATION_PATH := $(LOCAL_PATH)/../../../../../lib/android

DIR_SRC := ../../../../src
DIR_PVM := $(DIR_SRC)/lib


include $(CLEAR_VARS)

LIB_DIR := $(call host-path, $(LOCAL_PATH)/../../../../../../lib/android)
LOCAL_MODULE    := pvmtest
LOCAL_ARM_MODE := arm
LOCAL_SRC_FILES := $(DIR_SRC)/android_test/pvmandroidtest.c \
                   $(DIR_SRC)/android_test/pvmandroidtestex.cpp \
                   $(DIR_PVM)/drivers/pvmdriver_AndroideAudioTrack_jni.c

# Here we give our include directories
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(DIR_SRC)

LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
LOCAL_CFLAGS += -fexceptions -DPVM_USE_TREMOR -DPVM_STATICLIB

LOCAL_STATIC_LIBRARIES := -L$(LIB_DIR)
LOCAL_LDLIBS := -l:$(LIB_DIR)/libpvmstatic.a \
				-l:$(LIB_DIR)/libogg.a \
                -l:$(LIB_DIR)/libspeex.a \
                -l:$(LIB_DIR)/libtremor.a \
                -llog

include $(BUILD_SHARED_LIBRARY)
